This folder contains all replication materials for the manuscript "The Cash Crop Revolution, Colonialism and Economic Reorganization in Africa" that we resubmitted to World Development. 

Before starting to run anything, please make sure to install all R packages listed at the beginning of the file 00_master_analysis.R.
Also ensure to set the working directory to wherever you have stored this folder on your system and check whether the command "here()" returns thee correct folder path.

The file 00_master_analysis.R calls a series of scripts that prepare the analysis data, run models and prepare all tables and figures. Just run the file 00_master_analysis if you want to produce all output files in one go. 

For details on individual parts of the different analyses or partial replication, open and run the respective script after having called "define_vars.R" and "output_functions.R" that prepare the analysis data set as well as some helper functions for the estimation. 

For questions and clarifications, do not hesitate to contact author XY!